package com.example.practical_training_projects.service;

import com.example.practical_training_projects.entity.user;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface userService {
    List<user> getAlluser();

     PageInfo<user> finduserpage(Integer pageNum, Integer pageSize);//分页，pageNum：当前是第几页,pageSize：每页多少条数据

    Integer insertUser(user user_uid);
    Integer deleteUser(Integer user_uid);
    Integer updateUser(user user1);


    user authenticateUser(String username, String password);

    List<user>  getuserBYName(String user_name);
    user findUseruid(Integer user_uid);
    user getUserList( int page, int limit);

}
